import { baseUrl, req } from './axiosFun';

// 申请请假
export const leaveRequest = (params) => { return req("post", baseUrl + "/leaves/apply", params) };
// 请假审批
export const leaveApprove = (params) => { return req("post", baseUrl + "/leaves/approve", params) };
// 所有请假信息
export const LeaveDataAll = (params) => { return req("get", baseUrl + "/leaves/check/all", params) };
// 查看某个用户请假信息
export const LeaveDataOfUser = (params) => { return req("get", baseUrl + "/leaves/check/" + params, params) };
// 取消请假
export const deleteLSL = (params) => { return req("delete", baseUrl + "/leaves/delete/" + params, params) };